Understanding Quasar Variability: A Cosmic Phenomenon Explained